package com.example.gameex2;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.view.KeyEvent;
import android.view.MotionEvent;

public class IntroState  implements IState {
	Bitmap icon;
	int x;
	int y;
	private SpriteAnimation m_spr;
	
	@Override
	public void Init() {
		//m_spr = new SpriteAnimation(AppManager.getInstance().GetBitmap(R.drawable.));
		m_spr.InitSpriteData(0, 0, 51, 51, 5, 4);
	}

	@Override
	public void Destroy() {
		// TODO Auto-generated method stub

	}

	@Override
	public void Update() {
		// TODO Auto-generated method stub
		long GameTime = System.currentTimeMillis();
		m_spr.Update(GameTime);
	}

	@Override
	public void Render(Canvas canvas) {
		// TODO Auto-generated method stub
		m_spr.Draw(canvas);
	}

	@Override
	public boolean OnKeyDown(int keyCode, KeyEvent event) {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public boolean OnTouchEvent(MotionEvent event) {
		// TODO Auto-generated method stub
		AppManager.getInstance().GetGameView().ChangeGameState(new CreditState());
		return true;
	}

}
